package org.lecric.wind44.client.service;

import org.lecric.wind44.client.model.Spot;
import org.lecric.wind44.client.model.SpotInformation;
import org.lecric.wind44.client.model.Spots;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

/**
 * The client side stub for the RPC service.
 */
@RemoteServiceRelativePath("../spot")
public interface SpotService extends RemoteService {
	public Spots getSpots();
	
	public Spot add(Spot spot);
	
	public void delete(Spot spot);
	
	public void changeProperties(Spot spot);

	public SpotInformation add(Spot spot, SpotInformation spotInfo);
	
	public void delete(SpotInformation spotInfo);

	public void changeProperties(SpotInformation spotInfo);
	
//	public boolean isAdministrator();
	
	public void initDB();
}
